<?php $this->beginContent('//layouts/main'); ?>

<div class="span-4">
	<div id="sidebar">

	<?php
		$this->beginWidget('zii.widgets.CPortlet', array(
			'title'=>'知识手册',
		));
		foreach ($this->manual as $item){
			echo CHtml::link($item['label'], $item['url'])."<br />";
		}
		$this->endWidget();
	?>
	
	<?php
		$this->beginWidget('zii.widgets.CPortlet', array(
				'title'=>'最新用户'
				));
		$userNew= User::model()->findAll(array('order'=>'reg_time DESC', 'limit'=>10));
		foreach ($userNew as $user){
			echo CHtml::link($user->username, array('/user/view', 'id'=>$user->id))."<br />";
		}
		$this->endWidget();
	?>
	
	<?php
		$this->beginWidget('zii.widgets.CPortlet', array(
				'title'=>'贡献排行榜'
				));
		$userDevote = User::model()->findAll(array('order'=>'score DESC', 'limit'=>10));
		foreach ($userDevote as $user){
			echo CHtml::link($user->username, array('/user/view', 'id'=>$user->id))."<br />";
		}
		$this->endWidget();
	?>
	
	</div><!-- sidebar -->
</div>
<div class="span-20 last">
	<div id="content">
		<?php echo $content; ?>
	</div><!-- content -->
</div>
<?php $this->endContent(); ?>